package com.cyy.cn;

import com.cyy.cn.filter.WebFilter;
import com.netflix.zuul.ZuulFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;


@EnableZuulProxy
@EnableEurekaClient
@SpringBootApplication
public class WebApplication {
    public static void main(String[] args)
    {
        SpringApplication.run(WebApplication.class);
    }

    @Bean
    public ZuulFilter WebFilter(){
        return new WebFilter();
    }
}